<div class="container">
  {{#if model.workers_offline}}
  <div class="table-responsive">
    <table class="table table-condensed table-striped">
      <thead>
        <tr>
          <th>矿机编号</th>
          <th>当前算力</th>
          <th>最近矿机状态更新时间</th>
        </tr>
      </thead>
      <tbody>
        {{#each-in model.workers_offline as |k v|}}
          <tr class="{{if v.offline "warning" "success"}}">
            <td><i class="fa fa-spinner fa-spin"></i>&nbsp;&nbsp;{{k}}</td>
            <td>{{format-hashrate v.hr}}</td>
            <td>{{format-relative (seconds-to-ms v.lastBeat)}}</td>
          </tr>
        {{/each-in}}
      </tbody>
    </table>
  </div>
  {{else}}
    <h3>恭喜!所有矿机全部在线！</h3>
  {{/if}}  
  <div class="alert alert-info" role="alert">
    <span class="sr-only">Notice:</span>
算力会因为您的提交时间而滑动，上下浮动均属正常。
提示离线的矿机如果在24小时内仍未提交算力，会从离线矿机列表中移除。
  </div>

</div>
